package colas;

public class ColaArr implements ColaTDA {

	int cant;
	int[] C;

	public void InicializarCola(){
	cant=0;
	C = new int[100];
	}

	public int Primero(){
	return C[0];
	}

	public boolean ColaVacia(){
	return cant==0;
	}

	public void Acolar(int x){
	C[cant]=x;
	cant++;
	}

	public void Desacolar(){
	int i=0;
	while(i<cant-1){
	C[i]=C[i+1];
	i++;
	}
	cant--;

	}

}
